package threading;

public class ThreadDemo3_19 {
    public static void main(String[] args) throws InterruptedException {
        Thread a = new Thread(()-> {
                System.out.print("A");
        });

        Thread b = new Thread(()-> {
            System.out.print("B");
        });

        Thread c = new Thread(()-> {
            System.out.print("C");
        });

        for (int i = 0; i < 10; i++) {

            c.start();
            c.join();

            b.start();
            b.join();

            a.start();
            a.join();
        }
    }
}



